$(function(){
    var address = location.search;
   var id = address.split("=")[1];
//    alert(id);
$.ajax({
    url:"http://192.168.105.254/api/getdiscountproduct",
    datatype:"json",
<<<<<<< HEAD
    data:{productid:id},
=======
    data:{"productid":2},
>>>>>>> 06ce37a7ad419e870bcf59a5666b30b8fcdada84
    type:"get", 
    success:function(res){
        console.log(res);
        var html=template("temps",res);
        $(".paging").html(html);
    }
})
})